package com.hjh.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

@SpringBootApplication
@ServletComponentScan // 扫描Servlet
@MapperScan("com.hjh.demo.mapper") // 这是mybatis的mapper目录
public class SpringCloudMybatisDruidApplication {

	public static void main(String[] args) {
		SpringApplication app = new SpringApplication(SpringCloudMybatisDruidApplication.class);
		//app.setWebEnvironment(false);
		app.run(args);

//		try {
//			Thread.currentThread().join();
//		} catch (InterruptedException e) {
//			e.printStackTrace();
//		}
	}
}
